(sentence-end): Accept non-break space.
authorRichard M. Stallman <rms@gnu.org>
Fri, 16 Jan 2009 00:43:27 +0000 (00:43 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 16 Jan 2009 00:43:27 +0000 (00:43 +0000)
lisp/textmodes/paragraphs.el

index 1d4a2746f624246e056e0fbf083899cc639c864a..ca141c1b671225625f9ed340624be4515d862009 100644 (file)
@@ -183,14 +183,15 @@ end of a sentence, the ending period, question mark, or exclamation point
 must be followed by two spaces, with perhaps some closing delimiters
 in between.  See Info node `(elisp)Standard Regexps'."
   (or sentence-end
-      (concat (if sentence-end-without-period "\\w  \\|")
+      ;; We accept non-break space along with space.
+      (concat (if sentence-end-without-period "\\w[ \u00a0][ \u00a0]\\|")
              "\\("
              sentence-end-base
               (if sentence-end-double-space
-                  "\\($\\| $\\|\t\\|  \\)" "\\($\\|[\t ]\\)")
+                  "\\($\\|[ \u00a0]$\\|\t\\|[ \u00a0][ \u00a0]\\)" "\\($\\|[\t \u00a0]\\)")
               "\\|[" sentence-end-without-space "]+"
              "\\)"
-              "[ \t\n]*")))
+              "[ \u00a0\t\n]*")))
 
 (defcustom page-delimiter "^\014"
   "Regexp describing line-beginnings that separate pages."